package com.order.myservice.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.my.mapper.mapper.UserMapper;
import com.my.order.dao.User;
import com.my.order.inter.UserService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @date 2020/10/14 10:13
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> queryAllUser() {
        return userMapper.selectList(new QueryWrapper<User>());
    }

}
